<div class="form">


    <?php
    $form = $this->beginWidget('GxActiveForm', array(
        'id' => 'fun-learing-form',
        'enableAjaxValidation' => false,
            ));
    ?>

    <p class="note">
<?php echo Yii::t('app', 'Fields with'); ?> <span class="required">*</span> <?php echo Yii::t('app', 'are required'); ?>.
    </p>

    <?php echo $form->errorSummary($model); ?>

    <?php
    $this->widget('CStarRating', array(
        'model' => $model,
        'attribute' => 'rating',
        'name' => 'rating1',
        'value' => 3,
    ));
    ?>		

    <div class="row">
        <div class="rowLabel"><?php echo $form->labelEx($model, 'fun'); ?>
        </div>
        <div class="rowControl"><?php echo $form->textField($model, 'fun'); ?>
            <?php echo $form->error($model, 'fun'); ?>
        </div><!-- row -->
    </div>

    <div class="row">
        <div class="rowLabel"><?php echo $form->labelEx($model, 'learn'); ?>
        </div>
        <div class="rowControl"><?php echo $form->textField($model, 'learn'); ?>
            <?php echo $form->error($model, 'learn'); ?>
        </div><!-- row -->
    </div>

    <div class="row">
        <div class="rowLabel"><?php echo $form->labelEx($model, 'status'); ?>
        </div>
        <div class="rowControl"><?php echo $form->textField($model, 'status'); ?>
            <?php echo $form->error($model, 'status'); ?>
        </div><!-- row -->
    </div>

    <div class="row">
        <div class="rowLabel"><?php echo $form->labelEx($model, 'create_time'); ?>
        </div>
        <div class="rowControl"><?php echo $form->textField($model, 'create_time'); ?>
            <?php echo $form->error($model, 'create_time'); ?>
        </div><!-- row -->
    </div>

    <div class="row">
        <div class="rowLabel"><?php echo $form->labelEx($model, 'update_time'); ?>
        </div>
        <div class="rowControl"><?php echo $form->textField($model, 'update_time'); ?>
            <?php echo $form->error($model, 'update_time'); ?>
        </div><!-- row -->
    </div>

    <div class="row">
        <div class="rowLabel"><?php echo $form->labelEx($model, 'classes_id'); ?>
        </div>
        <div class="rowControl"><?php echo $form->dropDownList($model, 'classes_id', GxHtml::listDataEx(Classes::model()->findAllAttributes(null, true))); ?>
            <?php echo $form->error($model, 'classes_id'); ?>
        </div><!-- row -->
    </div>




    <div class="row">
        <?php
        echo GxHtml::submitButton(Yii::t('app', 'Save'));
        $this->endWidget();
        ?>
    </div>
</div>
<!-- form -->
